package com.yuezhu.activity;

import android.os.Bundle;
import android.widget.LinearLayout;

import com.yuezhu.R;
import com.yuezhu.constomview.DragView;
import com.yuezhu.constomview.DragViewGroups;
import com.yuezhu.global.ApplicationContext;
import com.yuezhu.global.BaseActivity;

import butterknife.ButterKnife;
import butterknife.InjectView;

public class PartitionnformationActivity extends BaseActivity {
    @InjectView(R.id.dragview)
    DragView dragview;
    int screen_height = ApplicationContext.getInstance().getScreen_height();
    @InjectView(R.id.drag_groups)
    DragViewGroups dragGroups;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_partitionnformation);
        ButterKnife.inject(this);
        setParm();
    }

    private void setParm() {
        LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) dragview.getLayoutParams();
        params.height = screen_height / 2;
//        dragGroups.setViewCount(4);
    }

}
